﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace NH70_Debugger
{
    public partial class Login : Form
    {
        public Login()
        {
            InitializeComponent();
        }

        private void button_OK_Click(object sender, EventArgs e)
        {
            String sIN_PWD     = this.textBox_PWD.Text;

            //System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
            String sPWD = "izex_"+System.DateTime.Now.ToString("yyyyMMddHH");

            if (sIN_PWD == sPWD)
                this.DialogResult = DialogResult.OK;            
            else
                this.DialogResult = DialogResult.Cancel;
            
            this.Close();
        }

        private void button_Cancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}